﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Prototype.master" AutoEventWireup="false" CodeFile="ContestDetails.aspx.vb" Inherits="Contests_ContestDetails" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<fieldset>
<legend>Contest Details</legend>
    <asp:DetailsView ID="DVContests" runat="server" Height="50px" Width="402px" 
        DataSourceID="DSContestDetails" AutoGenerateRows="False" DataKeyNames="ID">
        <Fields>
            <asp:BoundField DataField="Title" HeaderText="Title" SortExpression="Title" />
            <asp:BoundField DataField="FromDate" HeaderText="FromDate" 
                SortExpression="FromDate" />
            <asp:BoundField DataField="ToDate" HeaderText="ToDate" 
                SortExpression="ToDate" />
            <asp:BoundField DataField="Rules" HeaderText="Rules" SortExpression="Rules" />
            <asp:BoundField DataField="Details" HeaderText="Details" 
                SortExpression="Details" />
            <asp:BoundField DataField="Category" HeaderText="Category" 
                SortExpression="Category" />
        </Fields>
    </asp:DetailsView>
    <asp:SqlDataSource ID="DSContestDetails" runat="server" 
        ConnectionString="<%$ ConnectionStrings:myFirstDatabase %>" 
        ProviderName="<%$ ConnectionStrings:myFirstDatabase.ProviderName %>" 
        
        SelectCommand="SELECT [ID], [Title], [FromDate], [ToDate], [Rules], [Details], [Category] FROM [tblContests] WHERE ([ID] = ?)">
        <SelectParameters>
            <asp:QueryStringParameter Name="ID" QueryStringField="ID" 
                Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
    <BR />
    </fieldset>
    <fieldset>
    <legend>Vote in Contest</legend>
        <asp:RadioButtonList ID="RBVote" runat="server" RepeatDirection="Horizontal">
            <asp:ListItem>Yes</asp:ListItem>
            <asp:ListItem>No</asp:ListItem>
        </asp:RadioButtonList>
        <asp:Button ID="btnVote" runat="server" Text="Vote" />
    </fieldset>
</asp:Content>

